package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单项的产品对象 pa_order_item
 *
 * @author ruoyi
 * @date 2024-08-07
 */
@ApiModel(value = "订单项的产品")
public class PaOrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单项ID */
    private Long orderItemId;

    /** pa_order表的id */
    @Excel(name = "pa_order表的id")
    @ApiModelProperty(value = "pa_order表的id")
    private Long orderId;

    /** 供应商id */
    @Excel(name = "供应商id")
    @ApiModelProperty(value = "供应商id")
    private Long supplierId;

    /** 订单order_number */
    @Excel(name = "订单order_number")
    @ApiModelProperty(value = "订单order_number")
    private String orderNumber;

    /** 数量单位（件，个） */
    @Excel(name = "数量单位", readConverterExp = "件=，个")
    @ApiModelProperty(value = "数量单位")
    private String prodUnit;

    /** 购买产品个数 允许小数 */
    @Excel(name = "购买产品个数 允许小数")
    @ApiModelProperty(value = "购买产品个数 允许小数")
    private String prodCount;

    /** 实际生产数量 */
    @Excel(name = "实际生产数量")
    @ApiModelProperty(value = "实际生产数量")
    private String actualProdCount;

    /** 产品名称 */
    @Excel(name = "产品名称")
    @ApiModelProperty(value = "产品名称")
    private String prodName;

    /** 产品图片 */
    @Excel(name = "产品图片")
    @ApiModelProperty(value = "产品图片")
    private String prodUrl;

    /** 实际成交单价 */
    @Excel(name = "实际成交单价")
    @ApiModelProperty(value = "实际成交单价")
    private BigDecimal actualUnintPrice;

    /** 供应商报的单价 */
    @Excel(name = "供应商报的单价")
    @ApiModelProperty(value = "供应商报的单价")
    private BigDecimal unintPrice;

    /** 产品规格描述 */
    @Excel(name = "产品规格描述")
    @ApiModelProperty(value = "产品规格描述")
    private String priceContent;

    /** 用户Id */
    @Excel(name = "用户Id")
    @ApiModelProperty(value = "用户Id")
    private String userId;

    /** 购物时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购物时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "购物时间")
    private Date recTime;

    public void setOrderItemId(Long orderItemId)
    {
        this.orderItemId = orderItemId;
    }

    public Long getOrderItemId()
    {
        return orderItemId;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setSupplierId(Long supplierId)
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId()
    {
        return supplierId;
    }
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber()
    {
        return orderNumber;
    }
    public void setProdUnit(String prodUnit)
    {
        this.prodUnit = prodUnit;
    }

    public String getProdUnit()
    {
        return prodUnit;
    }
    public void setProdCount(String prodCount)
    {
        this.prodCount = prodCount;
    }

    public String getProdCount()
    {
        return prodCount;
    }
    public void setActualProdCount(String actualProdCount)
    {
        this.actualProdCount = actualProdCount;
    }

    public String getActualProdCount()
    {
        return actualProdCount;
    }
    public void setProdName(String prodName)
    {
        this.prodName = prodName;
    }

    public String getProdName()
    {
        return prodName;
    }
    public void setProdUrl(String prodUrl)
    {
        this.prodUrl = prodUrl;
    }

    public String getProdUrl()
    {
        return prodUrl;
    }
    public void setActualUnintPrice(BigDecimal actualUnintPrice)
    {
        this.actualUnintPrice = actualUnintPrice;
    }

    public BigDecimal getActualUnintPrice()
    {
        return actualUnintPrice;
    }
    public void setUnintPrice(BigDecimal unintPrice)
    {
        this.unintPrice = unintPrice;
    }

    public BigDecimal getUnintPrice()
    {
        return unintPrice;
    }
    public void setPriceContent(String priceContent)
    {
        this.priceContent = priceContent;
    }

    public String getPriceContent()
    {
        return priceContent;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setRecTime(Date recTime)
    {
        this.recTime = recTime;
    }

    public Date getRecTime()
    {
        return recTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("orderItemId", getOrderItemId())
                .append("orderId", getOrderId())
                .append("supplierId", getSupplierId())
                .append("orderNumber", getOrderNumber())
                .append("prodUnit", getProdUnit())
                .append("prodCount", getProdCount())
                .append("actualProdCount", getActualProdCount())
                .append("prodName", getProdName())
                .append("prodUrl", getProdUrl())
                .append("actualUnintPrice", getActualUnintPrice())
                .append("unintPrice", getUnintPrice())
                .append("priceContent", getPriceContent())
                .append("userId", getUserId())
                .append("recTime", getRecTime())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
